/*
package com.itheima.config;

import com.itheima.interceptor.TokenInterceptor;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurationSupport;




@Configuration
public class SpringMvcsupprt extends WebMvcConfigurationSupport {
    @Autowired
    private TokenInterceptor tokenInterceptor;

    @Override
    protected void addInterceptors(InterceptorRegistry registry) {
        //拦截的路径
        registry.addInterceptor(tokenInterceptor)
                .addPathPatterns("/**") //拦截所有
                .excludePathPatterns("/employee/login")
                .excludePathPatterns("/common/upload"); //去除这个路径，就是放行他
    }
}
*/
